package cn.cs.yangtai.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.io.Serializable;

/**
 * 商品表(Commodity)实体类
 *
 * @author makejava
 * @since 2024-12-17 13:50:54
 */
@Data
@Schema(name = "商品 类")
@AllArgsConstructor
@NoArgsConstructor
public class Commodity implements Serializable {
    private static final long serialVersionUID = 404197182476832823L;
    /**
     * 商品id
     */
    @Schema(description = "商品id",required = true)
    private Integer cId;
    /**
     * 商品名称
     */
    @Schema(description = "商品名称",required = true)
    private String cName;
    /**
     * 分类id
     */
    @Schema(description = "分类id",required = true)
    private Integer cFid;
    /**
     * 商品规格（棵，包）
     */
    private String cSpeci;
    /**
     * 商品描述
     */
    private String cPd;
    /**
     * 商品价格
     */
    private Double cPrice;
    /**
     * 商品库存
     */
    private Integer cQuantity;
    /**
     * 商品销量
     */
    private Integer cSales;
    /**
     * 商品上架时间
     */
    private Date cDate;
    /**
     * 备选属性1
     */
    private String cBei;
    /**
     * 备选属性2
     */
    private String cXuan;

}

